import request from '@/utils/request'

// 查询酒店类型列表
export function listHotelType(query) {
  return request({
    url: '/system/hotelType/list',
    method: 'get',
    params: query
  })
}

// 查询酒店类型详细
export function getHotelType(id) {
  return request({
    url: '/system/hotelType/' + id,
    method: 'get'
  })
}

// 新增酒店类型
export function addHotelType(data) {
  return request({
    url: '/system/hotelType',
    method: 'post',
    data: data
  })
}

// 修改酒店类型
export function updateHotelType(data) {
  return request({
    url: '/system/hotelType',
    method: 'put',
    data: data
  })
}

// 删除酒店类型
export function delHotelType(id) {
  return request({
    url: '/system/hotelType/' + id,
    method: 'delete'
  })
}
